package com.jvm.reflect;


import java.io.Serializable;

public class TargetObject implements Serializable , TargetInteface {

    private String value;

    public TargetObject() {
        value = "JavaGuide";
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public void publicMethod(String s) {
        System.out.println("I love " + s);
    }

    private void privateMethod() {
        System.out.println("value is " + value);
    }

}
